﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.iOS.ADInterstitialAd
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.ComponentModel;

#nullable disable
namespace UnityEngine.iOS
{
  /// <summary>
  ///   <para>ADInterstitialAd is a wrapper around the ADInterstitialAd class found in the Apple iAd framework and is only available on iPad.</para>
  /// </summary>
  [EditorBrowsable(EditorBrowsableState.Never)]
  [Obsolete("iOS.ADInterstitialAd class is obsolete, Apple iAD service discontinued", true)]
  public sealed class ADInterstitialAd
  {
    /// <summary>
    ///   <para>Checks if InterstitialAd is available (it is available on iPad since iOS 4.3, and on iPhone since iOS 7.0).</para>
    /// </summary>
    public static bool isAvailable => false;

    /// <summary>
    ///   <para>Creates an interstitial ad.</para>
    /// </summary>
    /// <param name="autoReload"></param>
    public ADInterstitialAd(bool autoReload)
    {
    }

    /// <summary>
    ///   <para>Creates an interstitial ad.</para>
    /// </summary>
    /// <param name="autoReload"></param>
    public ADInterstitialAd()
    {
    }

    /// <summary>
    ///   <para>Shows full-screen advertisement to user.</para>
    /// </summary>
    public void Show()
    {
    }

    /// <summary>
    ///   <para>Reload advertisement.</para>
    /// </summary>
    public void ReloadAd()
    {
    }

    /// <summary>
    ///   <para>Has the interstitial ad object downloaded an advertisement? (Read Only)</para>
    /// </summary>
    public bool loaded => false;

    public static event ADInterstitialAd.InterstitialWasLoadedDelegate onInterstitialWasLoaded
    {
      add
      {
      }
      remove
      {
      }
    }

    public static event ADInterstitialAd.InterstitialWasViewedDelegate onInterstitialWasViewed
    {
      add
      {
      }
      remove
      {
      }
    }

    /// <summary>
    ///   <para>Will be called when ad is ready to be shown.</para>
    /// </summary>
    public delegate void InterstitialWasLoadedDelegate();

    /// <summary>
    ///   <para>Will be called when user viewed ad contents: i.e. they went past the initial screen. Please note that it is impossible to determine if they clicked on any links in ad sequences that follows the initial screen.</para>
    /// </summary>
    public delegate void InterstitialWasViewedDelegate();
  }
}
